import {request,RequestConfig,HttpRequestMethod,LengyuHttpResponse,PageRequestParam,download,upload}  from '../../utils/request'


export interface Tag{
  id?:string,
  name?:string,
  children?:Array<Tag>
}

// 将微信用户信息保存到数据库
export function getTagsArray(productId:string): Promise<LengyuHttpResponse> {
  let param={
    "productId":productId
  }
  let requestConfig:RequestConfig={
    url:'/tag/getTagArray',
    method:HttpRequestMethod.POST,
    data:param,
    token:true,
  }
  return request(requestConfig);
}
